﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bike.Repository
{
    public class ProductRepository : Repository<Product>
    {
        public ProductRepository(IObjectContext context) : base(context) { }
        //public ProductProvider()
        //{
        //    //var builder = new  ContextBuilder<ObjectContext>();
            //var context = builder.Create(connection);
            //var context = new BikeEntities();
            //var contextAdapter = new ObjectContextAdapter(context);

            //var unitOfWork = new UnitOfWork(contextAdapter);



            //var teamRepository = new Repository<Team>(contextAdapter);

            //var newTeam = new Team { Name = "Da Bears" };



            //teamRepository.Add(newTeam);

            //unitOfWork.Commit();



            //var team = teamRepository.First(x => x.Name == "Da Bears");

            //Console.WriteLine(team.Name);



        //    context.Dispose();
        //}

    }
}
